
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/dist/locale/zh-cn.js'
import 'nprogress/nprogress.css'
//路由
import router from "@/router/index.js";
//用来存储token
import { createPinia } from 'pinia'
//导入持久化插件 用来持久化token
import {createPersistedState} from'pinia-persistedstate-plugin'

const app = createApp(App)
const pinia = createPinia()
const persist = createPersistedState()


//pinia使用持久化插件
pinia.use(persist)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale})
app.mount('#app')
